//
// Created by lain on 24-10-24.
//
#include <queue.h>
#include <iostream>
using namespace std;


int main() {
    Queue q;
    q.enterQueue(1);
    q.enterQueue(2);
    q.enterQueue(3);
    q.enterQueue(4);

    int e;
    q.leaveQueue(e);
    cout << e;
    q.leaveQueue(e);
    cout << e;
    q.leaveQueue(e);
    cout << e;
    q.leaveQueue(e);
    cout << e;

    q.enterQueue(1);
    q.leaveQueue(e);
    cout << e;
}
